package cn.yxl.org.mapper;


import cn.yxl.org.domain.Department;
import cn.yxl.org.query.DepartmentQuery;

import java.util.List;

/**
 * 部门的持久层接口
 */
public interface DepartmentMapper {
    //查全部
    List<Department> selectAll();
    //基于id查询
    Department selectById(Long id);
    //新增
    void save(Department department);
    //修改
    void update(Department department);
    //删除
    void delete(Long id);
    //分页查询+条件    当前页,每页显示条数
    List<Department> selectByPage(DepartmentQuery query);
    //统计条数
    Long count(DepartmentQuery query);
}









